package com.sample.FinalProject;

import android.graphics.Color;

public class MainShape extends Shape {
int xp, max_xp, level, str, intt, dex, con, skill_points;
public MainShape(){
maintain=0;
isEnemy=false;	
xp=0;
max_xp=10;
level=1;
str=0;
intt=0;
dex=0;
con=0;
skill_points=2;
x=300;
y=600;
length=25;
color=Color.CYAN;
health=50;
max_health=50;
speed=2;
damage=10;
}
public int getXP(){
return xp;	
}
public int getMaxXP(){
return max_xp;	
}
public int getSTR(){
return str;	
}
public int getINT(){
return intt;	
}
public int getCON(){
return con;	
}
public int getDEX(){
return dex;	
}
public int getSkill(){
return skill_points;	
}
public void setSTR(int newSTR){
str=newSTR;	
}
public void setMaxHealth(int newMax){
max_health=newMax;	
}
public void setINT(int newINT){
intt=newINT;	
}
public void setCON(int newCON){
con=newCON;	
}
public void setDEX(int newDEX){
dex=newDEX;	
}
public void setSkill(int newSkill){
skill_points=newSkill;	
}
public void setXP(int newXP){
xp=newXP;	
}
public void setMaxXP(int newXP){
max_xp=newXP;	
}
public void levelUp(){
level++;
xp-=max_xp;
max_xp*=1.5;
skill_points+=2;
}
public void maintain(){
if (health<max_health  && maintain==3){
health+=1+con/5;
maintain=0;
}	
else{
maintain++;	
}
if (health>max_health){
health=max_health;	
	}
}
public void updateStats(){
length=25+str/2-dex/2;
if (length<5){
length=5;	
}
speed=2+dex/2;
max_health=50+con*10;
damage=10+str;
}
}
